<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html>
	<head>
		<title>Welcome to TinyMVC!</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
		<link rel="stylesheet" type="text/css" media="screen" href="css/default.css" />

	</head>
	<body>
	<?php if(isset($userName)) :?>
	  	<h1>Witaj <?php echo $userName;?></h1>
	  	<a href="user/signout">Wyloguj się</a>
	<?php else:?>
		<h1>Witaj gościu</h1>
		<a href="user/signin">Zaloguj się</a>
	<?php endif;?>	
				
	</body>
</html>


